From 878bbb1b3a45b03928e34e45334a77363385df88 Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Mon, 16 Mar 2026 06:12:29 +0100 Subject: [PATCH] matplotlib_nullptr_s390x =================================================================== Gbp-Pq: Name matplotlib_nullptr_s390x.patch --- Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx index d8261ac29..dcff6556f 100644 --- a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx +++ b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx @@ -1029,6 +1029,12 @@ bool vtkMatplotlibMathTextUtilities::RenderOneCell(vtkImageData* image, int bbox { unsigned char* ptr = static_cast(image->GetScalarPointer(col, row, 0)); + if (ptr == nullptr) + { + vtkErrorMacro("image returned null ScalarPointer."); + return false; + } + // Background, do not load python data if (row > pythonRowStart || col < pythonColStart || row <= pythonRowEnd || col >= pythonColEnd) -- 2.30.2